package com.cdut.logistics.model.entity.datacentre;

import java.util.Date;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

/**
 * 
 * @ClassName: BaseUser  
 * @Description: model
 * @author wxt.xia
 * @date 2018年1月28日 下午2:57:09    
 * @param <M>
 */
@SuppressWarnings({"serial", "unchecked"})
public abstract class BaseUser<M extends BaseUser<M>> extends Model<M> implements IBean{
	
	
	
	
	public M setId(java.lang.Integer id) {
		set("id", id);
		return (M)this;
	}
	
	public java.lang.Integer getId() {
		return getInt("id");
	}

	public M setName(java.lang.String name) {
		set("name", name);
		return (M)this;
	}
	
	public java.lang.String getName() {
		return getStr("name");
	}

	public M setLabel(java.lang.String identity) {
		set("identity", identity);
		return (M)this;
	}
	
	public java.lang.String getIdentity() {
		return getStr("identity");
	}
	
	public M setStudent_id(java.lang.String student_id) {
		set("student_id", student_id);
		return (M)this;
	}
	
	public java.lang.String getStudent_id() {
		return getStr("student_id");
	}
	
	public M setSchool_id(java.lang.Integer school_id) {
		set("school_id", school_id);
		return (M)this;
	}
	
	public java.lang.Integer getSchool_id() {
		return getInt("school_id");
	}
	
	public M setAcademy_id(java.lang.Integer academy_id) {
		set("academy_id", academy_id);
		return (M)this;
	}
	
	public java.lang.Integer getAcademy_id() {
		return getInt("academy_id");
	}
	
	public M setDorm_id(java.lang.Integer dorm_id) {
		set("dorm_id", dorm_id);
		return (M)this;
	}
	
	public java.lang.Integer getDorm_id() {
		return getInt("dorm_id");
	}
	
	public M setMajor_id(java.lang.Integer major_id) {
		set("major_id", major_id);
		return (M)this;
	}
	
	public java.lang.Integer getMajor_id() {
		return getInt("major_id");
	}
	
	public M setSex(java.lang.String sex) {
		set("sex", sex);
		return (M)this;
	}
	
	public java.lang.String getSex() {
		return getStr("sex");
	}
	
	public M setPhone(java.lang.String phone) {
		set("phone", phone);
		return (M)this;
	}
	public java.lang.String getPassword() {
		return getStr("password");
	}
	
	public M setPassword(java.lang.String password) {
		set("password", password);
		return (M)this;
	}
	
	public java.lang.String getPhone() {
		return getStr("phone");
	}
	
	public M setRole_id(java.lang.Integer role_id) {
		set("role_id", role_id);
		return (M)this;
	}
	
	public java.lang.Integer getRole_id() {
		return getInt("role_id");
	}
	
	public M setrep_id(java.lang.Integer rep_id) {
		set("rep_id", rep_id);
		return (M)this;
	}
	
	public java.lang.Integer getrep_id() {
		return getInt("rep_id");
	}
	
	public M setCreated(Date created) {
		set("created", created);
		return (M)this;
	}
	
	public Date getCreated() {
		return getDate("created");
	}

	public M setUpdated(Date updated) {
		set("updated", updated);
		return (M)this;
	}
	
	public Date getUpdated() {
		return getDate("updated");
	}
	
	public M setActive(java.lang.Integer active) {
		set("active", active);
		return (M)this;
	}
	
	public java.lang.Integer getActive() {
		return getInt("active");
	}
	
	public M setIs_use(java.lang.Integer is_use) {
		set("is_use", is_use);
		return (M)this;
	}
	
	public java.lang.Integer getIs_use() {
		return getInt("is_use");
	}
}
